import request from '@/utils/request'

// 查询EPT设备履历列表
export function listMachineHistory(query) {
  return request({
    url: '/timeAnalysis/machineHistory/list',
    method: 'get',
    params: query
  })
}

// 查询EPT设备履历详细
export function getMachineHistory(id) {
  return request({
    url: '/timeAnalysis/machineHistory/' + id,
    method: 'get'
  })
}

// 新增EPT设备履历
export function addMachineHistory(data) {
  return request({
    url: '/timeAnalysis/machineHistory',
    method: 'post',
    data: data
  })
}

// 修改EPT设备履历
export function updateMachineHistory(data) {
  return request({
    url: '/timeAnalysis/machineHistory',
    method: 'put',
    data: data
  })
}

// 删除EPT设备履历
export function delMachineHistory(id) {
  return request({
    url: '/timeAnalysis/machineHistory/' + id,
    method: 'delete'
  })
}
